/*
 * Copyright (C) 2007 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.djnt.catering.database;

import java.util.HashMap;

import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.provider.BaseColumns;

public final class Province implements BaseColumns {
	static final String TABLE_NAME = "province";

	/**
	 * The content:// style URL for this table
	 */
	public static final Uri CONTENT_URI = Uri.parse("content://"
			+ CateringProvider.AUTHORITY + "/" + TABLE_NAME);

	/**
	 * The title of the note
	 * <P>
	 * Type: TEXT
	 * </P>
	 */
	public static final String NAME = "name";

	public static final String CONTENT_TYPE = null;

	public static final String CONTENT_ITEM_TYPE = null;

	public static final String DEFAULT_SORT_ORDER = null;

	public static void onCreate(SQLiteDatabase db) {
		// TODO Auto-generated method stub
		db.execSQL("CREATE TABLE " + TABLE_NAME + " (" + _ID
				+ " INTEGER PRIMARY KEY," + NAME + " TEXT);");
	}

	public static HashMap<String, String> PROJECTION_MAP = new HashMap<String, String>();
	static {
		PROJECTION_MAP.put(_ID, _ID);
		PROJECTION_MAP.put(NAME, NAME);
		UriMatcherCode.addURI(TABLE_NAME, UriMatcherCode.PROVINCE);
		UriMatcherCode.addURI(TABLE_NAME + "/#", UriMatcherCode.PROVINCE_ID);
	}
}
